<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<?php 
$config = Zend_Registry::get('config');
echo $this->headLink(); ?>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>
<!-- <table border="0" cellpadding="0" cellspacing="0" width="70%">
	<tr>
		<td>标题</td>
		<td>创建日期</td>
		<td>状态</td>
		<td>操作</td>
		<td>Stats</td>
	</tr>
	<?php foreach($this->paginator as $invitation) { ?>
		<tr>
			<td><?php echo $invitation->title; ?></td>
			<td><?php echo $invitation->created; ?></td>
			<td><?php echo $invitation->status; ?></td>
			<td><a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'stats','id'=>$invitation->id));?>">View</a></td>
			<td><a class="deleteLink" href="<?php echo $this->url(array('controller'=>'invitation','action'=>'delete','id'=>$invitation->id));?>">删除</a> | 
			<a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'edit','id'=>$invitation->id));?>">修改</a> | 
			<a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'invitationlist','id'=>$invitation->id));?>">waiting list</a>
			</td>
		</tr>
	<?php }?>
	<tr>
		<td colspan='5' align='left'>
		</td>
	</tr>
</table>

 -->
 <div class="list">
 
 <?php foreach($this->paginator as $invitation) { ?>
 <div class="item">
 
 <div class="previewCol">
 <div class="thumbnailContainer">
 <img src="<?php echo $config->baseurl; ?>/res/img/<?php 
  $resources = Theme::getResourceByType(Invitation::getTheme($invitation), '3');
  $themeThumbnail = $resources[0]->filename; 
  
  echo $themeThumbnail;
?>" />
</div>

</div>
 <div class="descriptionCol">
 <div class="itemAction">
 <a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'edit','id'=>$invitation->id));?>">编辑</a>
 | <a class="deleteLink" href="<?php echo $this->url(array('controller'=>'invitation','action'=>'delete','id'=>$invitation->id));?>">删除</a>
 | <a href="<?php echo $this->url(array('controller'=>'invitation','action'=>'stats','id'=>$invitation->id));?>">数据统计</a>
 </div>
 <div class="itemPost">
 <img src="<?php echo $config->baseurl; ?>/img/nopic_t.png" style="float:left; margin-right:6px;">
 <div class="itemPostDesc">
<a><?php echo Invitation::getUser($invitation)->username; ?></a>
<div>最后修改于<?php //echo date("Y-m-d",$invitation->created); 
echo $invitation->created; ?></div>
 </div>
 </div>
 <?php if ($invitation->status == 0){?>
 <span class="draft"></span>
 <?php }?>
 <a class="title"><?php echo $invitation->title; ?></a>
  <div>
<strong>活动类型</strong> <?php echo Invitation::getCategory($invitation)->name;?>
 <span><strong>卡片主题</strong> <?php echo Invitation::getTheme($invitation)->name;?></span>
 </div>
 <div>
 <div>
<strong>回复/总数</strong> 0/0
 <span><strong>日期</strong> <?php echo $invitation->created;?></span>
 <span><strong>地点</strong> <?php echo $invitation->address;?></span>
 </div>
 <div class="itemDesc">
<strong>描述</strong> <?php echo $invitation->description;?>
 </div>
 </div>
 
 </div>
 </div>
 <?php }?>
<div class="listBottom"></div>
 </div>
 
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>